<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@page import="org.jeecgframework.core.util.SysThemesUtil,org.jeecgframework.core.enums.SysThemesEnum"%> 
<%
SysThemesEnum sysTheme = SysThemesUtil.getSysTheme(request);
String lhgdialogTheme = SysThemesUtil.getLhgdialogTheme(sysTheme);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="plug-in/jquery/jquery-1.8.3.min.js" /></script>
<%-- <script src=<%=langurl%> type="text/javascript"></script> --%>
<link rel="stylesheet" href="css/index.css">
<title>手机注册</title>

</head>
<!--头部 -->
<%@include file="head.jsp"%>

<!--main -->
<div class="shezhi">
	<div class="shezhi_c">
		<div class="shezhi_c_top">
			<img src="imges/home.png"> > 设置 > 认证
		</div>
		<div class="shezhi_con">
		
			<%@include file="setLeftNaviLists.jsp"%>
			
			<div class="shezhi_con_r">
				<div class="shezhi_con_rtop">
					<div class="shezhi_con_rtop1" style="width: 100%">
						<ul style="margin-left: 20px;">
							<li>
								<a href="#" style="color: #000;">
									<span>手机认证</span>
								</a>
								<br>
								<img src="imges/jiayuan/jiantou.png">
							</li>
						</ul>
					</div>
				</div>
				<c:if test="${empty userInfo.mobile}">
				<div class="sj_renzheng">
					<img src="imges/shezhi/deng.png" style="vertical-align: middle"> <span>以下信息通过审核后将不能再次修改，提交后请耐心等待核查</span>
				</div>
				<div class="zh_anquan_l">
					<ul>
						<li>手机 :</li>
						<li>短信验证码 :</li>
					</ul>
				</div>
				
				<form action="userInfoController.do?saveAuthPhone" method="post" >
				<div class="zh_anquan_r">
					<ul>
						<li>
							<input id="phone" name="phone" type="text" class="zh_anquan_r_inp" style="width: 300px">
						</li>
						<li>
							<input id="authCode" name="authCode" type="text" class="zh_anquan_r_inp" style="width: 100px">
							<button class="jifen_duihuan2_btn" onclick="">获取验证码</button>  <!-- 点完一次 倒计时 -->
						</li>
					</ul>
					<div class="shezhi_con_rc3" style="width: 100%">
						<button class="shezhi_con_rc3_button" type="submit">提交</button> 
					</div>
				</div>
				</form>
				</c:if>
				<c:if test="${not empty userInfo.mobile}">
					您绑定的电话号码为:${phoneViewStr}
				</c:if>
			</div>
			<div style="clear: both"></div>
		</div>
		<div style="clear: both"></div>
	</div>
</div>
<!--foot -->
<%@include file="foot.jsp"%>

</body>
</html>
<script>
//获取验证码
function getAuthCode() {
	$.ajax({
		async : false,
		cache : false,
		type : 'POST',
		url : 'userInfoController.do?sendAuthCode',
		dataType:'json',
		data : {
	
			phone:$("#phone").val()
			
			},
			success : function(data) {
			if (data.success) {
				alert(data.msg);
				} else {
					alert(data.msg);
				}
			},

			error : function() {// 请求失败处理函数
				alert("注册信息有误请重新填写！");
			}

		});
	}
</script>
